export default {
  components: {
    Page: () => import('./page.vue')
  },
  props: {
    item: {
      type: Object,
      default: () => {}
    },
    options: {
      type: Object,
      default: () => {}
    },
  },
  data() {
    return {
      loading: false,
      pagination: {
        current: 1,
        pageSize: 10,
        pageSizeOptions: ['10', '20', '30'],
        showTotal: (total, range) => {
          return range[0] + '-' + range[1] + ' 共' + total + '条'
        },
        onChange: current => {
          this.pagination.current = current
          this.getData && this.getData()
        },
        onShowSizeChang: (curren, pageSize) => {
          this.pagination.pageSize = pageSize
          this.getData && this.getData()
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
      dataSource: [],
    }
  }
}